package agile.tools.aspect;

import agile.tools.autotest.MethodRecorder;

public aspect TestGenerator {
	pointcut methodExecution() : call(* agile.tools.web.*.*(..));

	Object around(): methodExecution() {
		MethodRecorder recorder = MethodRecorder.defaultMethodRecorder();
		recorder.record(thisJoinPoint);
		Object returnObject = proceed();
		recorder.recordReturnValueAndPersist(returnObject);
		System.out.println(recorder);
		return returnObject;
	}
}